<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PPT生成助手</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-image: url('https://s2.loli.net/2024/05/13/oDmLOVNUujC8ZMS.jpg');
            background-size: cover;
            background-position: center;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            position: relative;
        }
        form {
            background-color: rgba(255, 255, 255, 0);
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 900px;
        }
        h1 {
            margin-bottom: 20px;
            color: #333;
        }
        textarea {
            width: calc(100% - 10px);
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            resize: none;
            font-size: 15px;
            margin-bottom: 20px;
            height: 450px;
            background-color: rgba(255, 255, 255, 0.8);
            font-family: "黑体", Times, serif;
        }
        input[type="submit"] {
            display: block;
            width: 40%;
            padding: 10px;
            background-color: #007bff;
            color: #fff;
            font-size: 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin: 0 auto;
        }
        input[type="submit"]:hover {
            background-color: #0056b3;
        }
        h1 {
            margin-bottom: 40px;
            color: #D3D3D3;
            font-size: 70px;
            font-family: "Times New Roman", Times, serif;
        }
        h2 {
            color: #D3D3D3;
            font-size: 20px;
            font-weight: bold;
            font-family: "Times New Roman", Times, serif;
        }
        .back-button {
            position: absolute;
            bottom: 20px;
            left: 15px;
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }
        .back-button:hover {
            background-color: #0056b3;
        }
        .form-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .form-group {
            display: flex;
            align-items: center;
        }
        .form-group label {
            color: #FFFFFF; /* 设置字体颜色 */
            font-size: 20px; /* 设置字体大小 */
            font-family: "Times New Roman", Times, serif;
            margin-right: 10px;
        }
        select, input[type="text"] {
            width: 300px; /* 调整输入框和选择框宽度 */
            padding: 5px;
            border: 0.8px solid #ccc;
            border-radius: 4px;
            font-size: 18px;
            background-color: rgba(255, 255, 255, 0.8);
            font-family: "黑体", Times, serif;
        }
    </style>
</head>
<body>
    <div class="container">
       <form action="/generate_ppt" method="post">
           <h1>PPT生成助手</h1>
           <h2>输入主题或大纲:</h2>
           <textarea name="outline_content" rows="10" cols="50"></textarea><br>
           <div class="form-row">
               <div class="form-group">
                   <label for="theme">PPT主题:</label>
                   <select id="theme_select" name="theme_select" onchange="updateTheme()">
                       <option value="purple">紫色主题</option>
                       <option value="green">绿色主题</option>
                       <option value="lightblue">清逸天蓝</option>
                       <option value="taupe">质感之境</option>
                       <option value="blue">星光夜影</option>
                       <option value="telecomRed">炽热暖阳</option>
                       <option value="telecomGreen">幻翠奇旅</option>
                   </select>
                   <input type="hidden" id="theme" name="theme">
               </div>
               <div class="form-group">
                   <label for="author">PPT作者:</label>
                   <input type="text" id="author" name="author">
               </div>
           </div>
           <input type="submit" value="生成">
       </form>
       <a href="/" class="back-button">返回</a>
    </div>
    <script>
        function updateTheme() {
            var select = document.getElementById("theme_select");
            var theme = document.getElementById("theme");
            theme.value = select.value;
        }
    </script>
</body>
</html>
